home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 5⁄11⁄90 / 1279-MPW Pascal to TP3 Ex-May90 < prev    next >
Encoding:
Text File  |  1990-05-11  |  3.3 KB  |  67 lines  |  [TEXT/GEOL]

  1. Item    7724583                         10-May-90        09:42DST
  2.  
  3. From:   UK0016                          Icon Technology UK,IDV
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. cc:     NEAL                            Symantec, David Neal,PRT
  8.         UK0323                          Symantec (UK) Ltd,IDV
  9.         IT0048                          Apple Developers Group, UK,IMC
  10.  
  11. Sub:    MPW Pascal to TP3 Experiences
  12.  
  13. MacApp Gentlepeople,
  14.  
  15. I have just finished transferring a MacApp 2.0-based program, currently in a
  16. late stage of development, from MPW Pascal 3.1 to Think Pascal 3.0 and feel
  17. that others may benefit from my experience.
  18.  
  19. First some background details. The program consists of some 54000 lines of
  20. Object Pascal (excluding MacApp) and around 100 classes. The nodebug compiled
  21. size under MPW was 493K including 99K of resources. I am using a MacII with 8mb
  22. RAM. About six weeks ago I ran into the notorious "jump table full" problem
  23. when compiling the program with the MacApp debugger. I fired off a link to
  24. MacApp.Tech$ and discovered that there were only two possible ways out of this
  25. impasse: first was to use Steve Jasik's Debugger/IBS system, and the second was
  26. to use Think Pascal v3.0. Both of these options involved ditching the MacApp
  27. debugger (not a big loss, because the performance of the program using the
  28. MacApp debugger was lousey).
  29.  
  30. At that time Think Pascal v3.0 had not been released in the UK and so I took
  31. the only other route: Jasik's Debugger. I had heard that the learning curve was
  32. quite steep, and it certainly lived up to expectations. However, I managed to
  33. get it up and running and continued with product development. Unfortunately, I
  34. experienced recurring problems with both the Debugger and IBS system and so
  35. when Think Pascal arrived in the UK I decided to "have a go".
  36.  
  37. By this time a variety of horror stories about TP3 had appeared in MacApp.Tech$
  38. and so I was, to say the least, apprehensive and not a little skeptical about
  39. my chances of success.
  40.  
  41. I followed all the rules in the manual for converting MacApp source into TP3
  42. form (I reloaded MacApp from diskette before I started), and tried to compile
  43. it from one of the seed projects. It worked first time without a hitch.
  44.  
  45. Next I processed my own sources using the Generic Source Convertor and added it
  46. to the project. Apart from some minor inconsistencies, largely to do with sets
  47. and some type casting, it all compiled.
  48.  
  49. The only problem I hit was with the resources: ViewTypes.r contains an #include
  50. with a $$Shell variable in it, and SARez doesn't handle $$Shell. Anyway, this
  51. was easy to fudge.
  52.  
  53. The upshot of all this is that the complete conversion process took about seven
  54. hours (including some pauses to read bits of the manual). I now have one TP
  55. project that is compiled with the Think Debugger on and another project for
  56. building a standalone version. Both versions of the program worked first time:
  57. no crashes, no hassle. Even better: the standalone version is 477K - some 16K
  58. smaller than the MPW version! I estimate the time to compile the complete
  59. standalone program, including MacApp to be 20-25mins.
  60.  
  61. I was much impressed by the smoothness of the conversion and can now look
  62. forward to working in a truly interactive development environment. This is a
  63. mighty product.
  64.  
  65. Kind Regards, Keith Lander
  66.  
  67.